package com.example.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author xushuqiu
 * @since 2022-07-07
 */
@ApiModel(value = "查询菜单列表", description = "查询菜单实体类")
public class QueryPermissionVo implements Serializable {

    private static final long serialVersionUID = -6200694910552094202L;

    @ApiModelProperty(value = "编号")
    private Long permissionId;

    @ApiModelProperty(value = "所属上縿")
    private Long pid;

    @ApiModelProperty(value = "父名称")
    private String pidName;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "类型--(1:目录,2:菜单,3:按钮,100:自定义组件)")
    private Integer type;

    @ApiModelProperty(value = "权限便")
    private String permissionValue;

    @ApiModelProperty(value = "路径")
    private String uri;

    @ApiModelProperty(value = "图标")
    private String icon;

    @ApiModelProperty(value = "状徿--(0:禁止,1:正常,-1:删除)")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    private Date ctime;

    @ApiModelProperty(value = "排序")
    private Integer orders;

    @ApiModelProperty(value = "全名")
    private String fullName;

    @ApiModelProperty(value = "编码(关联资源表用)")
    private String code;

    @ApiModelProperty("子菜单")
    private List<QueryPermissionVo> childs;

    public Long getPermissionId() {
        return permissionId;
    }

    public void setPermissionId(Long permissionId) {
        this.permissionId = permissionId;
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public String getPidName() {
        return pidName;
    }

    public void setPidName(String pidName) {
        this.pidName = pidName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getPermissionValue() {
        return permissionValue;
    }

    public void setPermissionValue(String permissionValue) {
        this.permissionValue = permissionValue;
    }

    public String getUri() {
        return uri;
    }

    public void setUri(String uri) {
        this.uri = uri;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    public Integer getOrders() {
        return orders;
    }

    public void setOrders(Integer orders) {
        this.orders = orders;
    }

    public String getFullName() {
        return fullName;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public List<QueryPermissionVo> getChilds() {
        return childs;
    }

    public void setChilds(List<QueryPermissionVo> childs) {
        this.childs = childs;
    }
}
